home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / System Extras Headers / GX Headers / graphics debugging.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  4.5 KB  |  164 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        graphics debugging.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef graphicsDebuggingIncludes
  13. #define graphicsDebuggingIncludes
  14.  
  15.     #ifndef graphicsTypesIncludes
  16. #include "graphics types.h"
  17. /*    #include "math types.h"                                        */
  18. /*        #include <Types.h>                                        */
  19. /*            #include <ConditionalMacros.h>                        */
  20. /*            #include <MixedMode.h>                                */
  21. /*                #include <Traps.h>                                */
  22.     #endif
  23.  
  24.     #ifndef graphicsLinkageIncludes
  25. #include "graphics linkage.h"
  26.     #endif
  27.  
  28. enum gxValidationLevels {
  29.     gxNoValidation                = 0x00,
  30.     gxPublicValidation            = 0x01,
  31.     gxInternalValidation        = 0x02,
  32.     gxTypeValidation            = 0x00,
  33.     gxStructureValidation        = 0x10,
  34.     gxAllObjectValidation        = 0x20,
  35.     gxNoMemoryManagerValidation    = 0x0000,
  36.     gxApBlockValidation            = 0x0100,
  37.     gxFontBlockValidation        = 0x0200,
  38.     gxApHeapValidation            = 0x0400,
  39.     gxFontHeapValidation        = 0x0800,
  40.     gxCheckApHeapValidation        = 0x1000,
  41.     gxCheckFontHeapValidation    = 0x2000
  42. };
  43.  
  44. typedef long gxValidationLevel;
  45.  
  46. enum gxDrawErrors {
  47.     no_draw_error,
  48.     shape_emptyType,
  49.     shape_inverse_fullType,
  50.     rectangle_zero_width,
  51.     rectangle_zero_height,
  52.     polygon_empty,
  53.     path_empty,
  54.     bitmap_zero_width,
  55.     bitmap_zero_height,
  56.     text_empty,
  57.     glyph_empty,
  58.     layout_empty,
  59.     picture_empty,
  60.     shape_no_fill,
  61.     shape_no_enclosed_area,
  62.     shape_no_enclosed_pixels,
  63.     shape_very_small,
  64.     shape_very_large,
  65.     shape_contours_cancel,
  66.     pen_too_small,
  67.     text_size_too_small,
  68.     dash_empty,
  69.     start_cap_empty,
  70.     pattern_empty,
  71.     textFace_empty,
  72.     shape_primitive_empty,
  73.     shape_primitive_very_small,
  74.     transfer_equals_noMode,
  75.     transfer_matrix_ignores_source,
  76.     transfer_matrix_ignores_device,
  77.     transfer_source_reject,
  78.     transfer_mode_ineffective,
  79.     colorSet_no_entries,
  80.     bitmap_colorSet_one_entry,
  81.     transform_scale_too_small,
  82.     transform_map_too_large,
  83.     transform_move_too_large,
  84.     transform_scale_too_large,
  85.     transform_rotate_too_large,
  86.     transform_perspective_too_large,
  87.     transform_skew_too_large,
  88.     transform_clip_no_intersection,
  89.     transform_clip_empty,
  90.     transform_no_viewPorts,
  91.     viewPort_disposed,
  92.     viewPort_clip_empty,
  93.     viewPort_clip_no_intersection,
  94.     viewPort_scale_too_small,
  95.     viewPort_map_too_large,
  96.     viewPort_move_too_large,
  97.     viewPort_scale_too_large,
  98.     viewPort_rotate_too_large,
  99.     viewPort_perspective_too_large,
  100.     viewPort_skew_too_large,
  101.     viewPort_viewGroup_offscreen,
  102.     viewDevice_clip_no_intersection,
  103.     viewDevice_scale_too_small,
  104.     viewDevice_map_too_large,
  105.     viewDevice_move_too_large,
  106.     viewDevice_scale_too_large,
  107.     viewDevice_rotate_too_large,
  108.     viewDevice_perspective_too_large,
  109.     viewDevice_skew_too_large
  110. };
  111.  
  112. typedef long gxDrawError;
  113.  
  114. typedef boolean (*gxUserDebugFunction)(const char *str, long message, long reference);
  115.  
  116.     #ifdef __cplusplus
  117. extern "C" {
  118.     #endif
  119.  
  120. extern gxDrawError GXGetShapeDrawError(gxShape source)
  121.  THREEWORDINLINE(0x303C, 0x1ee, 0xA832);
  122. extern void GXValidateAll(void)
  123.  THREEWORDINLINE(0x303C, 0x1ef, 0xA832);
  124. extern void GXValidateColorSet(gxColorSet)
  125.  THREEWORDINLINE(0x303C, 0x1f0, 0xA832);
  126. extern void GXValidateColorProfile(gxColorProfile)
  127.  THREEWORDINLINE(0x303C, 0x1f1, 0xA832);
  128. extern void GXValidateGraphicsClient(gxGraphicsClient)
  129.  THREEWORDINLINE(0x303C, 0x1f2, 0xA832);
  130. extern void GXValidateInk(gxInk)
  131.  THREEWORDINLINE(0x303C, 0x1f3, 0xA832);
  132. extern void GXValidateShape(gxShape)
  133.  THREEWORDINLINE(0x303C, 0x1f4, 0xA832);
  134. extern void GXValidateStyle(gxStyle)
  135.  THREEWORDINLINE(0x303C, 0x1f5, 0xA832);
  136. extern void GXValidateTag(gxTag)
  137.  THREEWORDINLINE(0x303C, 0x1f6, 0xA832);
  138. extern void GXValidateTransform(gxTransform)
  139.  THREEWORDINLINE(0x303C, 0x1f7, 0xA832);
  140. extern void GXValidateViewDevice(gxViewDevice)
  141.  THREEWORDINLINE(0x303C, 0x1f8, 0xA832);
  142. extern void GXValidateViewPort(gxViewPort)
  143.  THREEWORDINLINE(0x303C, 0x1f9, 0xA832);
  144. extern void GXValidateViewGroup(gxViewGroup)
  145.  THREEWORDINLINE(0x303C, 0x1fa, 0xA832);
  146. extern gxValidationLevel GXGetValidation(void)
  147.  THREEWORDINLINE(0x303C, 0x1fb, 0xA832);
  148. extern void GXSetValidation(gxValidationLevel)
  149.  THREEWORDINLINE(0x303C, 0x1fc, 0xA832);
  150. extern long GXGetValidationError(char *procedureName, void **argument, long *argumentNumber)
  151.  THREEWORDINLINE(0x303C, 0x1fd, 0xA832);
  152. extern boolean GXGetGraphicsBugParametersPointer(struct graphicsBugParameters **blockPointer)
  153.  THREEWORDINLINE(0x303C, 0x1fe, 0xA832);
  154. extern gxUserDebugFunction GXGetUserGraphicsDebug(long *reference)
  155.  THREEWORDINLINE(0x303C, 0x1ff, 0xA832);
  156. extern void GXSetUserGraphicsDebug(gxUserDebugFunction userFunction, long reference)
  157.  THREEWORDINLINE(0x303C, 0x200, 0xA832);
  158.     #ifdef __cplusplus
  159. }
  160.     #endif
  161.  
  162. #endif
  163.  
  164.